package service;

import bean.Goods;
import bean.CartItem;
import bean.Page;

import java.util.List;

public interface BookService {
    public int addBook(Goods goods);

    public int deleteBookById(Integer id);

    public int updateBook(Goods goods);

    public Goods queryById(Integer id);

    public List<Goods> queryAllBook();

    public int[] syncStockAndSales(List<CartItem> cartItems);

    public Page<Goods> pagingQuery(int pageNumber, int pageSize,String classifyName);

    public Page<Goods> pagingQueryByPrice(int pageNumber, int pageSize, double min, double max);

    public List<Goods> searchByKeyword(String keyword);

}
